using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;

namespace Microsoft.Practices.Repository.Configuration.Design
{
    /// <summary>
    /// Represents the design time node for a collection of <see cref="RepositoryNode"/>, 
    /// inside the <see cref="RepositoryFactorySection"/>.
    /// </summary>
    [Image(typeof(RepositoryCollectionNode))]
    public class RepositoryCollectionNode : ConfigurationNode
    {
        /// <summary>
        /// Initializes a new <see cref="RepositoryCollectionNode"/>.
        /// </summary>
        public RepositoryCollectionNode() : base("Repositories")
        {

        }

        /// <summary>
        /// Gets or sets the value for this setting.
        /// </summary>
        [ReadOnly(true)]
        [Category("Category")]
        [Description("Description")]
        public override string Name
        {
            get { return base.Name; }
        }
    }
}
